<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>任务记录网站</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <header>
            <h1>任务记录</h1>
            <p>管理您的日常任务</p>
        </header>

        <main>
            <section class="add-task">
                <h2>添加新任务</h2>
                <form id="task-form">
                    <input type="text" id="task-input" placeholder="输入任务内容..." required>
                    <button type="submit">添加任务</button>
                </form>
            </section>

            <section class="filter-tasks">
                <h2>筛选任务</h2>
                <div class="filter-buttons">
                    <button class="filter-btn active" data-filter="all">全部</button>
                    <button class="filter-btn" data-filter="pending">待完成</button>
                    <button class="filter-btn" data-filter="completed">已完成</button>
                </div>
            </section>

            <section class="task-list">
                <h2>任务列表</h2>
                <div id="tasks-container">
                    <!-- 任务将在这里动态生成 -->
                </div>
            </section>
        </main>
    </div>

    <script src="script.js"></script>
</body>
</html>